package com.system.service.impl;
import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

import com.system.po.Pinke;
import com.system.mapper.PinkeMapper;
import com.system.service.PinkeService;

import java.util.List;
import java.util.Map;
/**
 * @author zch
 */
@Service
public class PinkeServiceImpl implements PinkeService {
	@Autowired
	private PinkeMapper pinkeMapper;
	public int deleteByPrimaryKey(Integer id) {
		return pinkeMapper.deleteByPrimaryKey(id);
	}
	public int insert(Pinke record) {
		return pinkeMapper.insert(record);
	}
	public int insertSelective(Pinke record) {
		return pinkeMapper.insertSelective(record);
	}
	public Pinke selectByPrimaryKey(Integer id) {
		return pinkeMapper.selectByPrimaryKey(id);
	}
	public List<Pinke> selectAll() {
		return pinkeMapper.selectAll();
	}
	public int updateByPrimaryKeySelective(Pinke record) {
		return pinkeMapper.updateByPrimaryKeySelective(record);
	}
	public int updateByPrimaryKey(Pinke record) {
		return pinkeMapper.updateByPrimaryKey(record);
	}
	public int insertOrUpdate(Pinke record) {
		return pinkeMapper.insertOrUpdate(record);
	}
	public int insertOrUpdateSelective(Pinke record) {
		return pinkeMapper.insertOrUpdateSelective(record);
	}
	public int updateBatch(List<Pinke> list) {
		return pinkeMapper.updateBatch(list);
	}
	public int batchInsert(List<Pinke> list) {
		return pinkeMapper.batchInsert(list);
	}
	public int updateByBusNoOpFare(Integer busno, Integer opfare, Integer cardno) {
		return pinkeMapper.updateByBusNoOpFare(busno, opfare, cardno);
	}
	public Pinke selectByBusNo(Integer busNo) {
		return pinkeMapper.selectByBusNo(busNo);
	}
	public int updateStateByBusNo(Integer busno){
		return pinkeMapper.updateStateByBusNo(busno);
	}
	public List<Map<Object, Object>> selectAllHandlInfo(Integer cid) {
		return pinkeMapper.selectAllHandlInfo(cid);
	}
}




